
//
//  DDChannelCell.m
//  NetEaseNews
//
//  Created by dqw on 15/7/24.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "DDChannelCell.h"
#import "DDNewsController.h"

@interface DDChannelCell ()
@property (strong, nonatomic) DDNewsController *vc;

@end

@implementation DDChannelCell

- (void)awakeFromNib
{
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"DDNews" bundle:nil];
    DDNewsController *vc = [sb instantiateInitialViewController];
    self.vc = vc;
    [self addSubview:vc.view];
}
- (void)setChannel:(DDChannel *)channel
{
    _channel = channel;
    self.vc.urlStr = channel.urlStr;
}
- (void)layoutSubviews
{
    self.vc.view.frame = self.bounds;
}

@end
